<h1>Articles List</h1>

<table>
  <thead>
    <tr>
      <th>Id cart</th>
      <th>Id product</th>
      <th>Quantity</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($cart as $article): ?>
    <tr>
  <!--<td><a href="<?php echo url_for('article/show?id_cart='.$article->getIdCart().'&id_product='.$article->getIdProduct()) ?>"><?php echo $article->getIdCart() ?></a></td>
      <td><a href="<?php echo url_for('article/show?id_cart='.$article->getIdCart().'&id_product='.$article->getIdProduct()) ?>"><?php echo $article->getIdProduct() ?></a></td> -->
      
      <td><?php echo $article->getIdCart() ?></td>
      <td><?php echo $article->getIdProduct() ?></td>
      <td><?php echo $article->getQuantity() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('article/new') ?>">New</a>
